{% extends 'base.html' %}
{% block title %}文章详情{% endblock %}
{% block content %}
    <div class="main_4">
        <div class="main_4_2">
            <div class="all">
                <h3>文章详情：</h3>
                <div class="article_add">
                   <a href="{% url 'article:article_add' %}"><button type="button">添加文章</button></a>
                </div>
                <br>
            </div>
            <div class="main">
                <span class="title"><a href="{% url 'article:sort_see' sort=article.sort %}">【{{ article.sort }}】</a>{{ article.title }}</span>
                <div class="main_left">
                    <span class="title-detial">
                        来自<a href="">{{ article.author }}</a><a href="">{{ article.pub_time | date:"Y-m-d H:i" }}</a>
                    </span>
                    <div class="txt">
                        <img src="{{ article.cover_img.url }}">
                        {{ article.content | safe }}
                        <span class="title-detial-1">
                            最后编辑者：<a href="">{{ article.last_editor }}</a>|
                            最后编辑时间：<a href="">{{ article.last_edit_time | date:" Y/m/d H:i " }}</a>
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}